package com.hlf.common.constants;

import com.hlf.common.utils.PropertieUtil;
import com.hlf.common.utils.SpringContextUtils;

/**
 * 浦发银行常量类
 * 
 * @author suyangsheng
 * 
 */
public class SPDConstants {

    public static final PropertieUtil propertieUtil = SpringContextUtils.getPropertieUtil();
    /**
     * 浦发银行交易地址
     */
    public final static String TRANS_URL = propertieUtil.getPropertie("trans_url");

    /**
     * 浦发银行交易授权目录
     */
    public final static String TRANS_AUTH_URL = "http://spdbweb.chinacardpos.com/payment-gate-web/gateway/api/";

    /**
     * 银行公钥
     */
    public final static String PUBLIC_KEY_PATH = propertieUtil.getPropertie("public_key_path");

    /**
     * 私钥地址 .pem
     */
    public final static String PRIVATE_KEY_PATH = propertieUtil.getPropertie("private_key_path");

    /**
     * 代理商私钥 .pem
     */
    public final static String PRIVATE_KEY_PFX_PATH = propertieUtil.getPropertie("private_key_pfx_path");

    /**
     * 私钥密码 .pfx
     */
    public final static String PRIVATE_KEY_PWD = propertieUtil.getPropertie("private_key_pwd");

    /**
     * 浦发代理商编号
     */
    public final static String ANGET_ID = propertieUtil.getPropertie("merchant_no");

    /**
     * 公众号认证主体
     */
    public final static String MCH_NAME = propertieUtil.getPropertie("PERSONAL_AUTHENTICATION_NAME");

    /**
     * 商户进件接口id
     */
    public final static String TRANS_ID_MCH_REGISTER = "25";
    /***
     * quxiaofang 公众号支付自定义配置类型
     * 配置 授权目录
     */
    public final static String CONFIG_TYPE_0 = "0";
    /**
     * 配置 关联APPID
     */
    public final static String CONFIG_TYPE_1 = "1";
    /**
     * 配置 推荐关注APPID
     */
    public final static String CONFIG_TYPE_2 = "2";
    
	/**
	 * 配置   我要收款的授权目录  
	 */
	public final static String CONFIG_TYPE_3 = "3";
	/**
	 * 配置   台卡的授权目录  
	 */
	public final static String CONFIG_TYPE_4 = "4";
}
